package com.demo.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author zwy
 * @since 2023-08-10
 */
@Data
@ToString
public class SysMenuEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父菜单ID,一级菜单为0
     */
    private Long parentId;

    /**
     * 菜单名字
     */
    private String name;

    /**
     * 菜单URL
     */
    private String url;

    /**
     * 授权(多个用逗号分隔,如:user:list,user:create)
     */
    private String perms;

    /**
     * 类型 0:目录 1:菜单 2:按钮
     */
    private Integer type;

    /**
     * 菜单图片
     */
    private String icon;

    /**
     * 排序
     */
    private Integer orderNum;

    /**
     * 删除(0正常-1删除)
     */
    private Integer isDel;


   
}
